package com.mmy.fta.cargo.web.enums;

import com.ymm.trade.enums.ResponseCode;

/**
 * @author guohao.xie
 * @apiNote
 * @exportable
 * @since 2021/10/21
 */
public enum DefaultResponseCode implements ResponseCode {
    //
    SUCCESS(1, "成功"),
    REMIAN_DELIVERYS(2,"发货次数不足，请充值"),
    INVALID_USER_ID(-2001, "无效的用户"),
    INVALID_ORDER_ID(-2002, "无效的订单"),
    INVALID_ORDER_STATE(-2003, "无效的订单状态"),
    INVALID_FOREIGN_ORDER_ID(-2004, "无效的经纪人上游订单"),
    SYSTEM_WRONG(-200, "系统繁忙，请稍后重试"),
    OBJECT_NOT_FOUND(-201, "未找到请求的数据"),
    BAD_REQUEST(-203, "无效的请求"),
    UPLOAD_FILE_ERROR(-204, "文件上传错误"),
    OPERATION_ERROR(-300, "操作失败，请稍后重试"),
    USER_NOT_LOGIN(-1000, "用户未登录"),
    FORBIDDEN(403, "权限不足"),
    SERVICE_QUERRY_ERROR(-1, "服务错误"),
    RESPONSE_USE_ERROR_MSG(-9999, ""),
    PARAMS_ERROR(9001, "参数错误"),
    ALREADY_DEL(-9998, "该货源已经被删除"),
    PERMISSION_DENIED(-13, "用户权限不足"),
    CARGO_ORDERED(-9, "货源已被订走！"),
    TRADE_TOO_MUCH(-12, "您的当天交易次数已达上限！"),
    ORDER_WRONG_INFO(-14, "订单信息有误！"),
    NOT_ENOUGH_MONEY(-15, "余额不足,请及时充值！"),
    ACCOUNT_FROZEN(-16, "账户已被冻结！"),
    PROCESSING_PAY(-17, "转账正在处理中"),
    NOT_EXIST_ORDER(-3001, "订单不存在"),
    CANNOT_FIND_ORDER_LOG(-4001, "链接已超时，无法查看"),
    FREIGHT_PAID(-5001, "运费已支付"),
    FREIGHT_PAY_ERROR(-5002, "运费付款金额有误"),
    FREIGHT_UNLOAD(-5003, "运费还未到付"),
    FREIGHT_UNPAY_TO_PLATFORM(-5004, "运费未付到平台"),
    FREIGHT_FROZEN(-5005, "运费已冻结"),
    FREIGHT_COUPON_ERROR(-5006, "冻结优惠券失败"),
    FREIGHT_USER_COUPON_ERROR(-5007, "使用优惠券失败"),
    FREIGHT_PAY_TYPE_ERROR(-5008, "当前支付款项与协议约定不一致"),
    FREIGHT_PAY_VERSION_ERROR(-5009, "当前版本过低，无法申请支付运费，请升级至最新版本！"),
    FREIGHT_COMPANY_APPLY_PAY_ERROR(-5010, "申请支付运费功能暂时关闭，预计1月15日再次开放此功能，给您带来的不便，敬请谅解！"),
    FREIGHT_PAY_EXISTED_ERROR(-5011, "您的支付申请正在审核中，请勿重复提交"),
    FREIGHT_USER_NOT_REGISTERPLACE_ERROR(-6001, "您暂不具备申请资格"),
    FREIGHT_USER_ALWEADY_REGISTERPLACE_ERROR(-6002, "您已开通担保交易资格"),
    FREIGHT_USER_NOT_CONTRACTRADE_ERROR(-6001, "您暂不具备续约资格"),
    FREIGHT_USER_NOT_CONTRACTBREAK_RESET_TRADE_ERROR(-6001, "抱歉，您的违约次数已发生变化，请重新提交订单"),
    RECEIPT_NOT_SUPPORT_COUPON(-6002, "预付和回单不支持优惠券"),
    COUPON_DISCOUNT_EXCEEDS_TRADE_AMOUNT(-6004, "优惠券面额不能大于付款金额"),
    FREIGHT_USER_NO_CARGO(-6003, "抱歉，由于您有满运宝订单未按要求在线支付运费，无法发布满运宝货源。请至我的-满运宝服务中心开通发货功能！"),
    REAL_TIME_FREIGHT_EXCEEDS_MAX_AMOUNT(-6005, "运费金额不能超过%d元"),
    ORDER_COMPLETE_REFUND_ERROR(-6006, "该订单当前无法退定金"),
    ORDER_HAD_REFUND_ERROR(-6007, "该订单定金已退，当前无法再次退定金"),
    ORDER_UNPAY_DEPOSIT_ERROR(-6008, "抱歉，由于没有支付定金而导致订单超时取消！"),
    BARGAIN_NUM_EXCEED(-7001, "当前司机有效报价次数超过上限"),
    GET_SIGN_SUBJECT__ERROR(-6009, "获取签约公司主体信息失败！"),
    CONTRACT_SUPPLEMENT_VERSION_ERROR(-6010, "对方申请修改运费，当前版本过低无法处理，请升级至最新版本！"),
    FREIGHT_EXIST_OFFER_CONTRACT_SUPPLEMENT(-6011, "抱歉，该订单修改运费请求处于存在待确认中，无法申请支付！"),
    MIDDLE_NUMBER_MAX_CONTACT_TIMES_EXCEEDED(-6012, "超过最大联系司机数，最多联系3位司机！"),
    NOT_VALID_PHONE_PATTERN(-6013, "非法的手机号码"),
    RED_PACKET_CLAIM_FAILED(-6014, "红包领取失败"),
    NOT_EXISTS_DRRIVER(-6015, "司机信息不存在"),
    CONSINOR_QUICK_CHECK_BARGAIN_ERROR(-1001, "请优先处理上面可查看的司机报价");

    private int state;
    private String msg;

    private DefaultResponseCode(int state, String msg) {
        this.state = state;
        this.msg = msg;
    }

    public int getState() {
        return this.state;
    }

    public String getMsg() {
        return this.msg;
    }
}
